package com.mdd.admin.validate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 网销客户参数
 * @author LikeAdmin
 */
@Data
@ApiModel("网销客户更新参数")
public class NetworkSalesVolumeUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "网销客户id")
    private Integer id;

    @NotNull(message = "clientName参数缺失")
    @ApiModelProperty(value = "客户名称")
    private String clientName;

    @NotNull(message = "state参数缺失")
    @ApiModelProperty(value = "状态")
    private Integer state;

    @NotNull(message = "clientSource参数缺失")
    @ApiModelProperty(value = "客户来源")
    private String clientSource;

    @NotNull(message = "belongIndustry参数缺失")
    @ApiModelProperty(value = "所属行业")
    private String belongIndustry;

    @NotNull(message = "advisoryService参数缺失")
    @ApiModelProperty(value = "咨询业务")
    private String advisoryService;

    @NotNull(message = "businessPrice参数缺失")
    @ApiModelProperty(value = "业务报价")
    private BigDecimal businessPrice;

    @NotNull(message = "contacts参数缺失")
    @ApiModelProperty(value = "联系人")
    private String contacts;

    @NotNull(message = "post参数缺失")
    @ApiModelProperty(value = "职务")
    private String post;

    @NotNull(message = "phone参数缺失")
    @ApiModelProperty(value = "电话")
    private String phone;

    @NotNull(message = "province参数缺失")
    @ApiModelProperty(value = "省")
    private String province;

    @NotNull(message = "city参数缺失")
    @ApiModelProperty(value = "市")
    private String city;

    @NotNull(message = "district参数缺失")
    @ApiModelProperty(value = "区")
    private String district;

    @NotNull(message = "salesman参数缺失")
    @ApiModelProperty(value = "业务人员")
    private String salesman;

    @NotNull(message = "operateTime参数缺失")
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

}
